<div class="problemindexholder" problemindex="A">
 <div class="ttypography">
  <div class="problem-statement">
   <div class="header">
    <div class="title">
     A. Quasi-palindrome
    </div>
    <div class="time-limit">
     <div class="property-title">
      time limit per test
     </div>
     1 second
    </div>
    <div class="memory-limit">
     <div class="property-title">
      memory limit per test
     </div>
     256 megabytes
    </div>
    <div class="input-file">
     <div class="property-title">
      input
     </div>
     standard input
    </div>
    <div class="output-file">
     <div class="property-title">
      output
     </div>
     standard output
    </div>
   </div>
   <div>
    <p>
     Let
     <span class="tex-font-style-it">
      quasi-palindromic
     </span>
     number be such number that adding some leading zeros (possible none) to it produces a palindromic string.
    </p>
    <p>
     String
     <span class="tex-span">
      <i>
       t
      </i>
     </span>
     is called a palindrome, if it reads the same from left to right and from right to left.
    </p>
    <p>
     For example, numbers
     <span class="tex-span">
      131
     </span>
     and
     <span class="tex-span">
      2010200
     </span>
     are
     <span class="tex-font-style-it">
      quasi-palindromic
     </span>
     , they can be transformed to strings "
     <span class="tex-span">
      131
     </span>
     " and "
     <span class="tex-span">
      002010200
     </span>
     ", respectively, which are palindromes.
    </p>
    <p>
     You are given some integer number
     <span class="tex-span">
      <i>
       x
      </i>
     </span>
     . Check if it's a
     <span class="tex-font-style-it">
      quasi-palindromic
     </span>
     number.
    </p>
   </div>
   <div class="input-specification">
    <div class="section-title">
     Input
    </div>
    <p>
     The first line contains one integer number
     <span class="tex-span">
      <i>
       x
      </i>
     </span>
     (
     <span class="tex-span">
      1 ≤
      <i>
       x
      </i>
      ≤ 10
      <sup class="upper-index">
       9
      </sup>
     </span>
     ). This number is given without any leading zeroes.
    </p>
   </div>
   <div class="output-specification">
    <div class="section-title">
     Output
    </div>
    <p>
     Print "
     <span class="tex-font-style-tt">
      YES
     </span>
     " if number
     <span class="tex-span">
      <i>
       x
      </i>
     </span>
     is
     <span class="tex-font-style-it">
      quasi-palindromic
     </span>
     . Otherwise, print "
     <span class="tex-font-style-tt">
      NO
     </span>
     " (without quotes).
    </p>
   </div>
   <div class="sample-tests">
    <div class="section-title">
     Examples
    </div>
    <div class="sample-test">
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>131<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>YES<br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>320<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>NO<br/></pre>
     </div>
     <div class="input">
      <div class="title">
       Input
      </div>
      <pre>2010200<br/></pre>
     </div>
     <div class="output">
      <div class="title">
       Output
      </div>
      <pre>YES<br/></pre>
     </div>
    </div>
   </div>
  </div>
  <p>
  </p>
 </div>
</div>
